<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Andrey
  Date: 22.08.2014
  Time: 3:36
  To change this template use File | Settings | File Templates.
--%>
<c:if test="${not empty feed}">
    <div class="container">
        <div class="page-header">
            <h1>Feed</h1>
        </div>
        <div class="col-md-7">

            <small>Newsfeed formed on the basis of the updates blog to which you put the "I want to help."</small>
            <div>
                <c:forEach items="${feed}" var="feedOne">
                    <div class="media">
                        <div class="pull-left">
                            <img src="${feedOne.grantApplication.user.avaPath}" width="72px" class="thumbnail"/>
                        </div>
                        <div class="media-body">
                            <div class="media-heading">
                                <a href="<c:url value="/profile/${feedOne.grantApplication.user.userId}"/>">${feedOne.grantApplication.user.userLogin}</a>
                                has updated project <a
                                    href="<c:url value="/grant/view/${feedOne.grantApplication.grantId}"/>">${feedOne.grantApplication.grantName}</a>
                                at <fmt:formatDate value="${feedOne.date}" pattern="dd.MM.yyyy, hh:mm"/>:
                            </div>
                            <c:out value="${feedOne.text}" escapeXml="false"/>
                            <hr>
                        </div>
                    </div>
                </c:forEach>
            </div>
        </div>
    </div>
</c:if>
